students = {
    1002: "Alice",
    1001: "Bob",
    1004: "Charlie",
    1003: "David"
}

for sno in sorted(students.keys()):
    print(f"学号: {sno}, 姓名: {students[sno]}")
